package com.ruoyi.gcgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gcgl.mapper.GcProjectZjbjMapper;
import com.ruoyi.gcgl.domain.GcProjectZjbj;
import com.ruoyi.gcgl.service.IGcProjectZjbjService;
import com.ruoyi.common.core.text.Convert;

/**
 * 造价报价Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-27
 */
@Service
public class GcProjectZjbjServiceImpl implements IGcProjectZjbjService 
{
    @Autowired
    private GcProjectZjbjMapper gcProjectZjbjMapper;

    /**
     * 查询造价报价
     * 
     * @param id 造价报价主键
     * @return 造价报价
     */
    @Override
    public GcProjectZjbj selectGcProjectZjbjById(Long id)
    {
        return gcProjectZjbjMapper.selectGcProjectZjbjById(id);
    }

    /**
     * 查询造价报价列表
     * 
     * @param gcProjectZjbj 造价报价
     * @return 造价报价
     */
    @Override
    public List<GcProjectZjbj> selectGcProjectZjbjList(GcProjectZjbj gcProjectZjbj)
    {
        return gcProjectZjbjMapper.selectGcProjectZjbjList(gcProjectZjbj);
    }

    /**
     * 新增造价报价
     * 
     * @param gcProjectZjbj 造价报价
     * @return 结果
     */
    @Override
    public int insertGcProjectZjbj(GcProjectZjbj gcProjectZjbj)
    {
        return gcProjectZjbjMapper.insertGcProjectZjbj(gcProjectZjbj);
    }

    /**
     * 修改造价报价
     * 
     * @param gcProjectZjbj 造价报价
     * @return 结果
     */
    @Override
    public int updateGcProjectZjbj(GcProjectZjbj gcProjectZjbj)
    {
        return gcProjectZjbjMapper.updateGcProjectZjbj(gcProjectZjbj);
    }

    /**
     * 批量删除造价报价
     * 
     * @param ids 需要删除的造价报价主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectZjbjByIds(String ids)
    {
        return gcProjectZjbjMapper.deleteGcProjectZjbjByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除造价报价信息
     * 
     * @param id 造价报价主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectZjbjById(Long id)
    {
        return gcProjectZjbjMapper.deleteGcProjectZjbjById(id);
    }

	@Override
	public int updateGcProjectZjbj4Gid(GcProjectZjbj gcProjectZjbj) {
		// TODO Auto-generated method stub
		return gcProjectZjbjMapper.updateGcProjectZjbj4Gid(gcProjectZjbj);
	}
}
